package com.ryl.yomall.list.client;

import com.ryl.yomall.list.client.impl.ListFeignClientImpl;
import com.ryl.yomall.model.common.result.Result;
import com.ryl.yomall.model.list.SearchParam;
import com.ryl.yomall.model.list.SearchResponseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Date 21:00
 * @Author ryl
 */
@FeignClient(name="service-list" ,fallback = ListFeignClientImpl.class)
public interface ListFeignClient {
    @GetMapping("/api/list/inner/hotScore/{skuId}")
    Result hotScore(@PathVariable Long skuId);
    @PostMapping("/api/list")
    SearchResponseVo list(@RequestBody SearchParam searchParam);
}
